<?php
session_start();
include ("../db_connect.php");
 
 
$username = mysql_real_escape_string(htmlentities(trim($_GET['uname'])));
$password = mysql_real_escape_string(htmlentities(trim($_GET['pass'])));
$password  = base64_encode($password);
//echo $username;

$sql2 = "SELECT * FROM tbl_account where username='".$username."'AND  password='".$password."'";
$result = mysql_query($sql2);

while($rows = mysql_fetch_array($result) ){


	if($username = $rows['username']){
		$isaprove = $rows['isaprove'];
		$type = $rows['type'];
		$id = $rows['id'];
		echo "1" . "+" . $isaprove . "+"  . $id;//= $rows['type'];
		
		
	}
	else{
		echo "0";
	}

}
?>